package ZuoYe18;

import java.util.Scanner;

public class HomeWork1 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] number = new int[5];
		for (int i = 0; i < number.length; i++) {
			number[i] = scan.nextInt();
		}
		int sum = 0;
		for (int i : number) {
			System.out.println(i);
			sum += i;
		}
		System.out.println(sum);
		System.out.println(sum / number.length);
	}

}
